//
//  ViewController.m
//  ZSStarEvaluationView-master
//
//  Created by safiri on 2018/6/25.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import "ViewController.h"
#import "ZSStarEvaluationView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //@weakify(self);
    ZSStarEvaluationView *evaluationView = [ZSStarEvaluationView evaluationViewWithChooseStarBlock:^(NSUInteger count) {
        //@strongify(self);
        NSLog(@"star count = %zd",count);
    }];
    evaluationView.backgroundColor = [UIColor redColor];
    evaluationView.frame = CGRectMake(100, 100, 200, 45);
    evaluationView.tapEnabled = YES;
    evaluationView.starCount = 0;
    [self.view addSubview:evaluationView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
